package com.longrise.android.byjk.plugins.vip.integralexchange;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

/**
 * Created by callxkj on 2017/7/22.
 * 积分兑换 的pageradapter
 */

public class IntegralExchange2Adapter extends FragmentPagerAdapter {


    public IntegralExchange2Adapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        if (position == 0) {
            return new IExchangezyxbgFragment();
        } else {
            return new IExchangezyxxzFragment();
        }
    }

    @Override
    public int getCount() {
        return 2;
    }

    @Override
    public CharSequence getPageTitle(int position) {
        String title = null;
        switch (position) {
            case 0:
                title = "展业秀背景";
                break;
            case 1:
                title = "展业秀勋章";
                break;
        }
        return title;
    }
}
